package java9_2;

import java.util.Scanner;

/**
 * @author oldliu
 * @since 1.0
 */
public class CalcTest {
    public static void main(String[] args)  {
        Calc c=new Calc();
        Scanner sc=new Scanner(System.in);
        System.out.println("input a and b:");
        int a=sc.nextInt();
        int b=sc.nextInt();
        try {
            int r=c.div2(a,b);
            System.out.println("商是："+r);
        } catch (Exception e) {
            e.printStackTrace();
        }
//        int r=c.divide(a,b);
//        System.out.println("商是："+r);

//        try {
//            int r=c.divide(a,b);
//            System.out.println("商是："+r);
//        } catch (Exception e) {
//            e.printStackTrace();
//        }
    }
}
